package com.qf.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author lixu
 */
@FeignClient(name = "sms-platform-cache")
public interface CacheFeign {



    //查询 Hash中的一个Value值
    @RequestMapping(value = "/cache/hget/{key}/{field}",method = RequestMethod.POST)
    public Object hget(@PathVariable(value = "key") String key, @PathVariable(value = "field") String field);


    //查询整个HashMap
    @RequestMapping(value = "/cache/hmget/{key}", method = RequestMethod.GET)
    public Map hMGet(@PathVariable("key") String key);
}
